package com.autumn.platform.auth.web.access;

import com.autumn.platform.auth.core.access.IPermission;
import com.autumn.platform.web.request.IWebRequest;

public class HttpOptionsPermissionMapping extends AbstractWebPermissionMapping {

    @Override
    protected IPermission lookup(IWebRequest request) {
        if ("OPTIONS".equalsIgnoreCase(request.getHttpMethod())) {
            return IPermission.ANY;
        }
        return null;
    }
}
